Component({

  properties: {
    openType: {
      type: String,
      default: "lo",
    }
  },
  data: {
    avatarTextureId: 'white',
    url: 'https://picsum.photos/200/200',
    defaultUrl: 'https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/waifu.png',
  },

  methods: {
    handleAssetsLoaded: function ({ detail }) {
      wx.showToast({ title: '焦点出现后点击屏幕放置' });
      this.scene.event.add('touchstart', () => {
        this.scene.ar.placeHere('setitem', true);
      });
      this.triggerEvent('assetsLoaded', this.scene);
    },
    handleReady: function ({ detail }) {
      this.scene = detail.value;
    },
    handleShare() {
      console.log('component handle share...')
      this.scene.share.captureToFriends();
    },
  }
})